﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Smallerp.Contracts.DataContracts;
using System.Data;

namespace Smallerp.Contracts
{
    [ServiceContract]
    public interface IOperateDBFenPian
    {
        [OperationContract]
        DataTable QueryDataTable(string inSql);
        [OperationContract]
        int ExecuteNonQuery(string sqlstr);
        [OperationContract]
        Object ExecuteScalar(string sqlstr);
       
        [OperationContract]
        int AssinGrid(int inPhotoID, out string OutGridName, out GridInfo_GridDCT outGridInfo_Grid, out int outGridID, int inSubAreaID);
        [OperationContract]
        int ForcePrintGrid(GridInfo_GridDCT inGGD);
        [OperationContract]
        int ClearSelectedGrid(GridInfo_GridDCT inGrid);
        [OperationContract]
        int PriorityPhoto(List<GridInfo_GridDCT> infoGrids, int inNum);
        [OperationContract]
        int CreateInnerReturn(List<InnerReturn_InfoDCT> CurrPhotoList, out Dictionary<int, int> outPhotoDict);
    }
}
